@import '~assets/main.less';

.f-tab {
  display: flex;
  justify-content: space-around;
  border-bottom: 1px solid @c-border;
  position: relative;
  font-weight: 300;
  .f-tab-bd {
    display: flex;
    flex: 1;
  }
  .f-tab-bd__item {
    display: inline-block;
    position: relative;
    width: 100%;
    span {
      .fv-ts;
      color: #aaa;
      font-size: 16px;
      user-select: none;
      line-height: 3em;
    }
    text-align: center;
    cursor: pointer;
    &.selected {
      span {
        color: #333;
        font-weight: normal;
      }
      &:after {
        content: ' ';
        display: inline-block;
        width: 100%;
        height: 3px;
        background: @c;
        position: absolute;
        bottom: -1px;
        left: 0;
      }
    }
    &:hover {
      span {
        color: #333;
      }
    }
    &:first-child {
      margin-left: 0;
    }
    &:last-child {
      margin-right: 0;
    }
  }
  .f-tab-bd__cursor {
    position: absolute;
    width: 14px;
    height: 4px;
    background: @c;
    bottom: 0;
    left: 0;
    transition: 0.2s;
    display: none;
    transform: translateX(-50%);
  }
}

.f-tab.small {
  .f-tab-bd__item {
    span {
      font-size: 14px;
      line-height: 3em;
    }
    &.selected {
      span {
        color: @c;
        font-weight: normal;
      }
      &:after {
        height: 1px;
      }
    }
    &:hover {
      span {
        color: @c;
      }
    }
  }
}
